<?php

require_once "core/application/models/musers/musers9.php";

class Musers10 extends Musers9 {

    private $_query;

    protected function getMaxMailId() {
        /**
         * @return последний ID в списке
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `mailUniqueId` FROM `mail` ORDER BY `mailUniqueId` DESC LIMIT 1";
        $fetch = mysql_fetch_assoc(DB::getInstance()->sql($this->_query));
        return $fetch['mailUniqueId'];
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }
}
?>
